import { createRouter,createWebHashHistory } from 'vue-router';

const router = createRouter({
    history: createWebHashHistory(),
    routes:[
        {
            path:'/',
            component:()=> import('../views/home')
        },
        {
            path:'/home',
            component:()=> import('../views/home')
        },
        {
            path:'/mine',
            component:()=> import('../views/mine')
        },
        {
            path:'/cart',
            component:()=> import('../views/cart')
        },
        {
            path:'/order',
            component:()=> import('../views/order')
        },
        {
            path:'/store',
            component:()=> import('../views/store')
        },
        {
            path: '/createorder',
            component: () => import('../views/createOrder'),
            meta: {
              isAuth: true
            }
          },

    ]
    
})

export default router
